package com.usian.controller;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class JdbcConfigurationtest {

    @Autowired
    private DruidDataSource druidDataSource;

    @GetMapping("/jdbcConfig")
    public String jdbcConfig(){
        return druidDataSource.getName()+"============="+druidDataSource.getUrl();
    }

}
